package com.ruoyi.system.mongo.Impl;

import com.ruoyi.system.domain.mongodb.Ufollows;
import com.ruoyi.system.domain.mongodb.Users;
import com.ruoyi.system.mongo.UfollowsDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;

/**
 * @Author HP
 * @Date 2021/5/6
 * @Description TODO
 */
@Component
public class UfollowsDaoImpl implements UfollowsDao {
    @Autowired
    private MongoTemplate mongoTemplate;
    @Override
    public void saveUfollows(Ufollows ufollows) {
        mongoTemplate.save(ufollows);
    }
}
